﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kollektiv.DataModel.NHibernate;

namespace Kollektiv.DataModel.Web.NHibernate
{
    public class RatingChoiceMap : ContentMap<RatingChoice>
    {
        public RatingChoiceMap()
            : base()
        {
            References<Rating>(x => x.Rating).Not.Nullable().UniqueKey("uix_RatingChoiceRatingName");
            Map(x => x.Name).Not.Nullable().UniqueKey("uix_RatingChoiceRatingName");
            Map(x => x.Count).Not.Nullable();
        }
    }
}
